/**
  * @name 截单时间
  * @description: 
  * @param 
  * @return 
  */
<template>
	<u-sticky offset-top="65" z-index="1">
	<view class="stopTime" v-if="time">截单时间：{{time}}</view>
	</u-sticky>
</template>

<script>
	import {formTime} from "@/utils/formTime.js"
	export default{
		props:{
			stopTime:{
				type:String,
				required:true
			}
		},
		data(){
			return{
				time:""
			}
		},
		created(){
			this.time = formTime(this.stopTime)
		}
	}
</script>

<style lang="scss" scoped>
	.stopTime{
		text-align: center;
		padding: 27rpx 0;
		color: #FFFFFF;
		background-color: #F43A3D;
	}
</style>
